%Extracts data from figure
%dataObjs created has 2 elements and 1st one is 0x0 placeholder
%Don't currently know how to get errorbars
h=gcf;
axesObjs = get(h, 'Children');  %axes handles
dataObjs = get(axesObjs, 'Children'); %handles to low-level graphics objects in axes
objTypesX = get(dataObjs{2}, 'XData');  %type of low-level graphics object
objTypesY = get(dataObjs{2}, 'YData');  %type of low-level graphics object

Num = 6;
X = cell2mat(objTypesX(Num));
Y = cell2mat(objTypesY(Num));

figure;plot(X,Y,'o')